<?php

namespace App\Jobs;

use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Support\Facades\DB;

class Sendmail implements ShouldQueue
{
    use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;

    /**
     * Create a new job instance.
     *
     * @return void
     */
    public function __construct()
    {
        //
    }

    /**
     * Execute the job.
     *
     * @return void
     */
    public function handle()
    { 

        // echo 555;
        // exit;\
        
        file_put_contents('not.txt','ha', FILE_APPEND);
        
        // for($i=0;$i<10000;$i++){
        //     DB::table('users')->insert(['name'=>'kongqi'.str_random(),'email'=>str_random(),"password"=>"dsfs".str_random()]);
        // }
        
        //
    }
}
